import Vue from 'vue'
import Router from 'vue-router'
import login from './views/login.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/',
      name: 'home',
      component: () => import('./views/home.vue'),
      children:[
        {
          path:'earthlist',
          component:()=>import('@/components/earthlist.vue')
        },
        {
          path:'NewEarthlist',
          name:"NewEarthlist",
          component:()=>import('@/components/NewEarthList.vue')
        },
      ]
    }
  ]
})
